package org.ch00.test08.demo2;

import java.util.Scanner;

/**
 * @author ZJL
 * @date 2025-03-04
 */
public class MainTest {
    public static void main(String[] args) {
        Thief thief = new Thief();
        User u = new User();
        SecurityDoor securityDoor = new SecurityDoor();
        IronGate ironGate = new IronGate();
        thief.steal(securityDoor);
        System.out.println("===============================");
        u.pOpen(securityDoor);
        System.out.println("===============================");
        thief.steal(ironGate);
        System.out.println("===============================");
        u.pOpen(ironGate);
    }
}
